<!DOCTYPE html>
<html class="x-admin-sm" lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./css/font-awesome.css">
  <link rel="stylesheet" href="./css/theme6.css">
  <link rel="stylesheet" href="./lib/layui/css/layui.css">
  <link rel="stylesheet" href="./css/xadmin.css">
  <link rel="stylesheet" href="./css/common.css">
  <!-- <script src="./js/adv/advpos.js"></script> -->
  <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
</head>

<body>
  <div class="x-nav">
    <span class="layui-breadcrumb">
      <a href="">首页</a>
      <a href="">演示</a>
      <a>
        <cite>导航元素</cite></a>
    </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
      onclick="location.reload()" title="刷新">
      <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
  </div>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <!-- 搜索表单 -->
      <form action="" class="layui-form" id="search" lay-filter="search">
        <div class="layui-form-item">
          <label class="layui-form-label">广告位名称</label>
          <div class="layui-input-block">
            <input type="text" name="name" required lay-verify="required" placeholder="请输入广告位名称" autocomplete="off"
              class="layui-input">
          </div>
        </div>
        <button type="submit" class="layui-btn layui-btn-normal">
          <i class="fa fa-search left-nav-li"></i>
          搜索
        </button>
        <button type="reset" class="layui-btn layui-btn-primary">
          <i class="fa fa-refresh left-nav-li"></i>
          重置
        </button>
      </form>
      <!-- 表格 -->
      <table id="demo" lay-filter="test" class="layui-table"></table>
      <!-- 分页器 -->
      <div id="laypage"></div>
      <!-- 新增/编辑表单 -->
      <form class="layui-form" lay-filter="test" id="addOrEdit" style="display: none;"></form>
    </div>
  </div>
  <!-- 表头工具 -->
  <script type="text/html" id="toolbarDemo1">
    <div class="toolBox layui-btn-container">
      <div div class= "left" >
    <button class="layui-btn-primary layui-btn" id="addItem" lay-event="addItem">
      <i class="fa fa-plus left-nav-li"></i>
      新增
    </button>
    <button class="layui-btn-primary layui-btn" id="download" lay-event="LAYTABLE_EXPORT">
      <i class="fa fa-download left-nav-li"></i>
      导出
    </button>
  </div>
  <div class="right">
      <button class="layui-btn-primary layui-btn " id="formChange" lay-event="formChange">
          <i class="fa fa-angle-up left-nav-li"></i>
      </button>
      <button class="layui-btn-primary layui-btn " id="refresh" lay-event="refresh">
          <i class="fa fa-refresh left-nav-li"></i>
      </button>
      <button class="layui-btn-primary layui-btn" id="filter" lay-event="LAYTABLE_COLS">
          <i class="fa fa-filter left-nav-li"></i>
      </button>
  </div>
  </div >
  </script>
  <!-- 编辑删除按钮 -->
  <script type="text/html" id="toolbarDemo2">
    <div>
      <button class="fa fa-edit layui-bg-blue layui-btn editItem" data-id="{{ d.id }}" ></button>
      <button class="fa fa-trash-o layui-bg-red layui-btn delItem" data-id="{{ d.id }}"></button>
    </div>
  </script>

  <script src="./lib/layui/layui.js" charset="utf-8"></script>
  <script src="./lib/axios.js"></script>
  <script src="./js/ajaxBase.js"></script>
  <script type="text/javascript" src="./js/xadmin.js"></script>
  <script src="./lib/form-serialize.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/advpos.js"></script>
</body>

</html>